package org.zsl.dao;

import org.junit.Test;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UserDAOTestor {

    /**
     *    resultSet ---> List<User>
     * */
    @Test
    public void testSelect() throws SQLException {

        UserDAO userDAO = new UserDAO();
        ResultSet resultSet = userDAO.selectAll();

        while (resultSet.next()) {

            String username = resultSet.getString("username");
            System.out.println(username);

        }


    }

}
